<?php
global $_GPC, $_W;
$uniacid = $_W['uniacid'];
$id = $_GPC['id'];
$res = $this->res;
$plus = $this->plus;
load()->func('tpl');
$setting = $this->baseset($uniacid);
if ($setting['qiaodaourl'] == '内置') {
	message('请先点击底部菜单进行签到！', $this->createMobileUrl('index'), 'error');
	exit;
}
$openid = $_W['openid'];
$userinfo = $this->Get_checkoauth();
if (empty($_W['openid'])) {
	$openid = $userinfo['openid'];
}
$follow = $userinfo['follow'];
$user = $this->getuserinfo($openid, $userinfo['nickname'], $userinfo['avatar'], $follow);
$_share['title'] = $setting['fxtit'];
$_share['imgUrl'] = tomedia($setting['fxlogo']);
$_share['desc'] = $setting['fxdes'];
$_share['link'] = $_W['siteroot'] . "app/index.php?i=" . $_W['uniacid'] . "&c=entry&do=index&m=bsht_tbk";
$_W['page']['sitename'] = '每日签到';
include $this->template('qiandao');